//
//  LHCImageView.m
//  UIimageViewDemo
//
//  Created by lihongcheng on 16/4/14.
//  Copyright © 2016年 lihongcheng. All rights reserved.
//

#import "LHCImageView.h"

@implementation LHCImageView

-(instancetype)initWithFrame:(CGRect)frame{
    self =[super initWithFrame:frame];
    if (self) {
        [self myImageView];
    }
    return self;
    
}
-(void)myImageView
{
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 20)];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.backgroundColor = [UIColor colorWithRed:1.0 green:0.8 blue:1.0 alpha:0.5];
    [self addSubview:self.titleLabel];

}

@end
